﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QLGhe.aspx.cs" Inherits="LotteCinema.QLGhe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style29
        {
            margin-left: 61px;
        }
        .style30
        {
            margin-left: 62px;
        }
        .style31
        {
            margin-left: 66px;
        }
        .style32
        {
            width: 195px;
            text-align: right;
        }
        .style33
        {
            width: 195px;
            text-align: right;
            margin-left: 160px;
        }
        .style34
        {
            margin-left: 120px;
        }
        .style36
        {
            width: 270px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="title" style="font-size:14pt;">QUẢN LÝ GHẾ</div>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td class="style26" align="center">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red" Font-Size="12pt"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%; margin-left:270px;">
        <tr>
            <td class="style32">
                <asp:Label ID="Label1" runat="server" Text="Mã Ghế:"></asp:Label>
            </td>
            <td class="style36">
                <asp:DropDownList ID="DDLMAG" runat="server" CssClass="style31" Height="25px" 
                    Width="182px" AutoPostBack="True" 
                    onselectedindexchanged="DDLMAG_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style32">
                <asp:Label ID="Label2" runat="server" Text="Số Hàng"></asp:Label>
            </td>
            <td class="style36">
                <asp:TextBox ID="txtSoHang" runat="server" CssClass="style30" Enabled="False" 
                    Width="178px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style33">
                <asp:Label ID="Label3" runat="server" Text="Số Dãy"></asp:Label>
            </td>
            <td class="style36">
                <asp:TextBox ID="txtSoDay" runat="server" CssClass="style29" Enabled="False" 
                    Width="178px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style33">
                <asp:Label ID="Label4" runat="server" Text="Mã Phòng:"></asp:Label>
            </td>
            <td class="style36">
                <asp:TextBox ID="txtMaPhong" runat="server" CssClass="style30" Width="178px" 
                    Enabled="False"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style33">
                <asp:Label ID="Label5" runat="server" Text="Mã Loại Ghế:"></asp:Label>
            </td>
            <td class="style36">
                <asp:TextBox ID="txtMaLG" runat="server" CssClass="style30" Width="178px" 
                    Enabled="False"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style33">
                <asp:Label ID="Label6" runat="server" Text="Tình Trạng:"></asp:Label>
            </td>
            <td class="style36">
                <asp:DropDownList ID="DDLTinhTrang" runat="server" CssClass="style30" 
                    Height="16px" Width="184px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btCapNhat" runat="server" Text="Cập Nhật" Width="86px" 
                    onclick="btCapNhat_Click" />
                <asp:Button ID="btTimKiem" runat="server" onclick="btTimKiem_Click" 
                    Text="Tìm Kiếm" Width="67px" />
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr align="center">
            <td>
                &nbsp;</td>
            <td>
                <asp:GridView ID="grGhe" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" CssClass="style34" DataKeyNames="MAG" AllowPaging="True" AllowSorting="True" 
                    onselectedindexchanged="grGhe_SelectedIndexChanged" 
                    onpageindexchanging="grGhe_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="MAG" HeaderText="MAG" ReadOnly="True" 
                            SortExpression="MAG" />
                        <asp:BoundField DataField="SOHANG" HeaderText="SOHANG" 
                            SortExpression="SOHANG" />
                        <asp:BoundField DataField="SODAY" HeaderText="SODAY" SortExpression="SODAY" />
                        <asp:BoundField DataField="MAPHONG" HeaderText="MAPHONG" 
                            SortExpression="MAPHONG" />
                        <asp:BoundField DataField="MALG" HeaderText="MALG" SortExpression="MALG" />
                        <asp:CheckBoxField DataField="TINHTRANG" HeaderText="TINHTRANG" 
                            SortExpression="TINHTRANG" />
                    </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="#FFFFCC" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <SortedAscendingCellStyle BackColor="#FEFCEB" />
                    <SortedAscendingHeaderStyle BackColor="#AF0101" />
                    <SortedDescendingCellStyle BackColor="#F6F0C0" />
                    <SortedDescendingHeaderStyle BackColor="#7E0000" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [GHE]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
